package com.dis.api.client;


import com.dis.pojo.entity.Region;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "resource-service")

public interface RegionClient {

    /**
     * 通过regionId集合来批量获取地址
     */
    @GetMapping("/admin/region/getRegions")
    List<Region> selectByIds(@RequestParam("regionId") List<Integer> idsList);
}


